package com.xc.controller.backend;

import com.xc.common.ServerResponse;
import com.xc.pojo.SiteSetting;
import com.xc.service.ISiteSettingService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author mipha
 * @version 1.0
 * @date 2019/3/15 12:01 AM
 */
@Controller
@RequestMapping("/admin/set/")
@Slf4j
public class AdminSiteSettingController {

    @Autowired
    ISiteSettingService iSiteSettingService;


    /**
     *  修改设置记录
     * @param siteSetting
     * @return
     */
    @RequestMapping("update.do")
    @ResponseBody
    public ServerResponse update(SiteSetting siteSetting){
        return iSiteSettingService.update(siteSetting);
    }





}
